﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class seo : System.Web.UI.Page
{
    News n = new News();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            this.Label1.Text = n.GetNewsByCid(337).Rows[0]["title"].ToString();
            this.Label2.Text = n.GetNewsByCid(338).Rows[0]["title"].ToString();
            this.Label3.Text = n.GetNewsByCid(339).Rows[0]["title"].ToString();
            this.Label4.Text = n.GetNewsByCid(340).Rows[0]["title"].ToString();
            this.Label5.Text = n.GetNewsByCid(341).Rows[0]["title"].ToString();
            this.Label6.Text = n.GetNewsByCid(342).Rows[0]["title"].ToString();
            this.Label7.Text = n.GetNewsByCid(343).Rows[0]["title"].ToString();
            this.Label8.Text = n.GetNewsByCid(344).Rows[0]["title"].ToString();
            this.Label9.Text = Function.GetSubstring(Function.StripHTML(n.GetNewsByCid(337).Rows[0]["content"].ToString()), 110);
            this.Label10.Text = Function.GetSubstring(Function.StripHTML(n.GetNewsByCid(338).Rows[0]["content"].ToString()), 110);
            this.Label11.Text = Function.GetSubstring(Function.StripHTML(n.GetNewsByCid(339).Rows[0]["content"].ToString()), 110);
            this.Label12.Text = Function.GetSubstring(Function.StripHTML(n.GetNewsByCid(340).Rows[0]["content"].ToString()), 110);
            this.Label13.Text = Function.GetSubstring(Function.StripHTML(n.GetNewsByCid(341).Rows[0]["content"].ToString()), 110);
            this.Label14.Text = Function.GetSubstring(Function.StripHTML(n.GetNewsByCid(342).Rows[0]["content"].ToString()), 110);
            this.Label15.Text = Function.GetSubstring(Function.StripHTML(n.GetNewsByCid(343).Rows[0]["content"].ToString()), 110);
            this.Label16.Text = Function.GetSubstring(Function.StripHTML(n.GetNewsByCid(344).Rows[0]["content"].ToString()), 110);
            this.Label17.Text = "<a href='dzsw_news.aspx?id=" + n.GetNewsByCid(337).Rows[0]["id"].ToString() + "' target='_blank'><img src='images/ckwz.gif' width='91' height='28' border='0' /></a>";
            this.Label18.Text = "<a href='dzsw_news.aspx?id=" + n.GetNewsByCid(338).Rows[0]["id"].ToString() + "' target='_blank'><img src='images/ckwz.gif' width='91' height='28' border='0' /></a>";
            this.Label19.Text = "<a href='dzsw_news.aspx?id=" + n.GetNewsByCid(339).Rows[0]["id"].ToString() + "' target='_blank'><img src='images/ckwz.gif' width='91' height='28' border='0' /></a>";
            this.Label20.Text = "<a href='dzsw_news.aspx?id=" + n.GetNewsByCid(340).Rows[0]["id"].ToString() + "' target='_blank'><img src='images/ckwz.gif' width='91' height='28' border='0' /></a>";
            this.Label21.Text = "<a href='dzsw_news.aspx?id=" + n.GetNewsByCid(341).Rows[0]["id"].ToString() + "' target='_blank'><img src='images/ckwz.gif' width='91' height='28' border='0' /></a>";
            this.Label22.Text = "<a href='dzsw_news.aspx?id=" + n.GetNewsByCid(342).Rows[0]["id"].ToString() + "' target='_blank'><img src='images/ckwz.gif' width='91' height='28' border='0' /></a>";
            this.Label23.Text = "<a href='dzsw_news.aspx?id=" + n.GetNewsByCid(343).Rows[0]["id"].ToString() + "' target='_blank'><img src='images/ckwz.gif' width='91' height='28' border='0' /></a>";
            this.Label24.Text = "<a href='dzsw_news.aspx?id=" + n.GetNewsByCid(344).Rows[0]["id"].ToString() + "' target='_blank'><img src='images/ckwz.gif' width='91' height='28' border='0' /></a>";
        }
    }
}
